<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	<title>推广中心</title>
	<script src="__JS__/mui.min.js"></script>
	<link href="__CSS__/mui.min.css" rel="stylesheet"/>
	<script type="text/javascript" charset="utf-8">
        mui.init();
	</script>
	<style type="text/css">
		body{
			width: 100%;
			height: 100%;
			background: url(__IMG__/bg.png)no-repeat center center;


		}
		.ewm_box{
			width: 90%;
			margin: 0px auto;
			padding-top: 100px;
			text-align: center;
		}
		.ewm_box p{
			margin: 0px 0;
			color: #fff;
		}
		input[type=text]{
			font-size:12px;
			width: 80%;
			height:33px;
		}
		.color_ff{color: #fff}
	</style>
<body>
<!--<header class="mui-bar mui-bar-nav">-->
	<!--<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>-->
	<!--<h1 class="mui-title">推广中心</h1>-->
<!--</header>-->
<div class="ewm_box">
	<p  id="code"></p>
	<!--<img src="__IMG__/ewm.jpg"/>-->
	<p>请扫描图片二维码</p>
</div>
<div style="margin-top: 20px">

	<input id="foo" type="text" value="{$code_url}" width="80%" readonly="readonly">
	<button class="btn" data-clipboard-action="copy" data-clipboard-target="#foo">复制</button>
	<div class="padding_10 mui-text-center">
		<p class="color_ff">请扫描图片二维码请扫描图片二维码</p>
		<p class="color_ff">请扫描图片二维码请扫描图片二维码</p>
		<p class="color_ff">请扫描图片二维码请扫描图片二维码</p>
	</div>
</div>

<script src="__JS__/jquery-1.6.2.min.js" ></script>
<script src="__JS__/jquery.qrcode.min.js" ></script>
<script src="__JS__/clipboard.min.js" ></script>
<script src="__JS__/layer.js" ></script>
<script src="__JS__/rooms.js" ></script>
<script type="text/javascript">
    $(function(){
        $("body").css("height",$(document).height());
    });
    jQuery(function(){
        jQuery('#code').qrcode({
            width   : 200,
            height  : 200,
            text    : "{$code_url}"
        });
    })



</script>
<script>
    var clipboard = new Clipboard('.btn');
    clipboard.on('success', function(e) {
        my_error('复制成功')
    });

    clipboard.on('error', function(e) {
        my_error('复制失败')
    });
</script>
</body>
</html>
